<html>
<head>
<title>DB2 Query</title>
</head>
<body bgcolor="white">

<?php

// include our custom function libraries
include_once("iolib.php");  

// define variables and constants
$dbname = "DSN";  // tah odbc dsn
$fuser = $_POST["db2user"];
$fpassw = $_POST["db2pass"];
$verbose = TRUE;

$dbquery = generate_Query(load_Query($_POST["Query"]), get_Posts());

// Fire the Query ...
$dbconn = dbconnect($verbose,$dbname,$fuser,$fpassw);

// ouput query / function
display_query($dbconn,$dbquery,$_POST["UseCached"]);

?>
</body>
</html>

